<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\model\Category;

class Contact extends Frontend
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';


    public function index()
    {
        $cateInfo = Category::where(['nickname' => '/contact', 'pid' => 0])
        ->field('id, pid, name, nickname, type, flag')
        ->find();

        $this->assign('cateInfo', $cateInfo);
        return $this->fetch();
    }
}